public class TestMyLinkedList {
    public static void main(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        myLinkedList.addFirst(12);
        myLinkedList.addFirst(15);
        myLinkedList.addFirst(18);
        myLinkedList.addFirst(21);
        myLinkedList.addFirst(24);
        myLinkedList.addFirst(25);
        myLinkedList.display();
       int ret= myLinkedList.size();
        System.out.println("节点个数:"+ret);
        boolean flg=myLinkedList.contains(15);
        System.out.println(flg);
        myLinkedList.addLast(99);
        myLinkedList.display();
        myLinkedList.addIndex(2,56);
        myLinkedList.display();
      myLinkedList.remove(56);
      myLinkedList.display();
    }


}
